body.adminsite {
  font: 13px/1.231 sans-serif;

  &, input, select, textarea, button {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #222222;
  }
  select, input, textarea, button {
    font: 99% sans-serif;
  }
  pre, code, kbd, samp {
    font-family: monospace, sans-serif;
  }
  ::-moz-selection, ::selection {
    background: #FF5E99;
    color: #fff;
    text-shadow: none;
  }
  a {
    &:hover, &:active {
      outline: none;
    }
  }
  .left {
    float: left;
  }
  .right {
    float: right;
  }
  #error {
    width: 340px;
    border: #990000 solid 1px;
    background-color: #bf1b17;
    color: #ffffff;
    padding: 8px;
    margin-bottom: 8px;
  }
  #flashnotice, #flasherror {
    padding: 6px 20px;
    color: #ffffff;
    font-weight: bold;
  }
  #flashnotice {
    background: #99CC00;
  }
  #flasherror {
    background: #ff5555;
  }
  #notice {
    width: 340px;
    border: #519032 solid 1px;
    background-color: #d6ffd1;
    color: #333333;
    padding: 8px;
    margin-bottom: 8px;
  }
  #wrapper {
    margin: 0 20px;
    overflow: auto;
  }
  hr {
    border: dashed black;
    border-width: 1px 0 0;
    height: 0;
  }
  header {
    margin: 0;
    padding: 20px;
    background-color: #e7e7e7;
    background: -moz-linear-gradient(bottom, #fff, #f0f0f0 17%, #fff 18%, #c0c0c0 19%, #e7e7e7 20%, #e7e7e7);
    background: -webkit-gradient(linear, left bottom, left top, from(#fff), color-stop(17%, #f0f0f0), color-stop(18%, #fff), color-stop(19%, #c0c0c0), color-stop(20%, #e7e7e7), to(#e7e7e7));
    border-top: 6px solid #595959;
    h2 {
      font-size: 135%;
      margin: 0;
      padding: 0;
    }
  }
  #action_bar {
    font-size: 85%;
    margin: 0.2em 20px 1.5em;
    a {
      background-color: rgba(0, 0, 0, 0.2);
      background-repeat: no-repeat;
      background-position: left center;
      border-radius: 4px;
      -moz-border-radius: 4px;
      -webkit-border-radius: 4px;
      margin-right: 0.5em;
      padding: 0.2em;
      text-decoration: none;
      &:hover {
        background-color: rgba(0, 0, 0, 0.7);
      }
      &.add, &.back, &.new, &.refresh {
        padding-left: 18px;
      }
      &.add, &.new {
        background-image: asset-url('adminsite/admin/add.png');
      }
      &.back {
        background-image: asset-url('adminsite/admin/arrow_left.png');
      }
      &.refresh {
        background-image: asset-url('adminsite/admin/arrow_refresh.png');
      }
    }
  }
  #filters {
    border: 1px solid #ccc;
    margin: 0.2em 20px 1.5em;
    & > div {
      margin:0;
    }
    legend {
      margin:0;
      padding: 0 0.3em;
    }
    label {
      display: inline;
      margin: 0;
    }
    ul {
      display: inline;
      list-style-type: none;
      margin: 0;
      padding: 0;
      li {
        display: inline;
      }
    }
    #scopes {
      margin-bottom: 1em;
      li {
        border-left: 1px solid black;
        padding: 0 0.3em 0 0.5em;
        &.active a {
          font-weight: bold;
        }
        &:first-child {
          border-left: 0;
          padding-left: 0;
        }
        .count {
          color: #ccc;
        }
        a:link, a:visited {
          text-decoration: none;
          white-space: nowrap;
        }
      }
    }
    #search_filters ul {
      padding: 0 5px 0 0;
      li {
        border: 1px solid #ccc;
        border-radius: 10px 0 0 10px;
        margin: 0 5px;
        padding: 3px 3px 3px 10px;
      }
      button {
        background-color: transparent;
        border: 0;
        font-weight: bold;
      }
    }
  }

  form.search {
    position: absolute;
    top: 240px;
    left: 110px;
    border: 1px solid #595959;
    border-radius: 5px;
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 17, 0.7);
    margin: 0 0 15px;
    .titlebar {
      background-color: #e7e7e7;
      border-bottom: 1px solid #e3e3e3;
      border-radius: 5px 5px 0 0;
      font-weight: bold;
      padding: 10px;
      button {
        float:right;
        background-color: transparent;
        border: none;
        font-size: 120%;
        margin-top: -2px;
      }
    }
    .content {
      background-color: #eee;
      border-radius: 0 0 5px 5px;
      padding: 10px;
    }
    label {
      display: inline-block;
      min-width: 7em;
    }
    ul {
      margin: 0;
      padding: 0;
      li {
        white-space: nowrap;
        min-width: 100px;
        max-width: 450px;
        margin-bottom: 0px;
        margin-right: 0px;
        list-style: none;
        height: 35px;
      }
    }
  }

  .clearfix {
    zoom: 1;
    &:before {
      content: "\0020";
      display: block;
      height: 0;
      visibility: hidden;
    }
    &:after {
      content: "\0020";
      display: block;
      height: 0;
      visibility: hidden;
      clear: both;
    }
  }
  pre {
    background-color: #eee;
    padding: 10px;
    font-size: 11px;
  }
  a {
    color: #222;
    &:hover {
      color: #fff;
      background-color: #000;
    }
  }
  .fieldWithErrors {
    padding: 2px;
    background-color: red;
    display: table;
  }
  #errorExplanation {
    width: 400px;
    border: 2px solid red;
    padding: 7px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    h2 {
      text-align: left;
      font-weight: bold;
      padding: 5px 5px 5px 15px;
      font-size: 12px;
      margin: -7px;
      background-color: #c00;
      color: #fff;
    }
    p {
      color: #333;
      margin-bottom: 0;
      padding: 5px;
    }
    ul li {
      font-size: 12px;
      list-style: square;
    }
  }
  div {
    &.uploadStatus {
      margin: 5px;
    }
    &.progressBar {
      margin: 5px;
      div {
        &.border {
          background-color: #fff;
          border: 1px solid grey;
          width: 100%;
        }
        &.background {
          background-color: #333;
          height: 18px;
          width: 0%;
        }
      }
    }
  }
  .shipped {
    text-decoration: line-through;
  }
  /* MENU */
  .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    li {
      float: left;
      margin: 0;
      margin-right: 0.5em;
      padding: 0;
      a {
        color: #666;
        border-color: #aaa;
        border-style: solid;
        background-color: #efefef;
        display: block;
        margin: 0;
        padding: 0.2em 0.5em;
        text-decoration: none;
        &:hover {
          color: #000;
          background-color: #cfcfcf;
        }
        &.active:hover {
          background-color: #cfcfcf;
        }
      }
      &.active a, &.current a {
        background-color: #cfcfcf;
      }
      &.log_out a {
        border-color: red;
        background-color: #dc1515;
        &:hover {
          background-color: #f00006;
        }
      }
    }
  }

  #admin_menu {
    background: #ffffff;
    float: right;
    position: absolute;
    right: 0;
    top: 0;
    ul {
      float: left;
      li a {
        border-top-width: 0px;
        border-left-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 1px;

        border-radius: 0 0 4px 4px;
        -moz-border-radius: 0 0 4px 4px;
        -webkit-border-radius: 0 0 4px 4px;
      }
    }
  }

  #content_menu {
    background: #ffffff;
    float: left;
    margin: 0 20px;
    ul {
      float: left;
      li a {
        border-top-width: 1px;
        border-left-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 0px;

        border-radius: 4px 4px 0 0 ;
        -moz-border-radius: 4px 4px 0 0;
        -webkit-border-radius: 4px 4px 0 0;
      }
    }
  }

  img {
    border: 0;
    max-height: 50px;
    text-decoration: none;
  }
  .notice {
    border: 1px solid #090;
    padding: 6px;
    background: #9f9;
    margin-bottom: 10px;
    img {
      vertical-align: bottom;
    }
  }
  #header_right img {
    vertical-align: bottom;
  }
  #newsletter_form, #newsletter_issues, #newsletter_graphics {
    border: 1px dotted #888;
    float: left;
    padding: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  h1 {
    background: asset-url("adminsite/admin/logo.svg") no-repeat;
    font-size: 135%;
    font-weight: normal;
    padding-left: 124px;
    min-height: 34px;
    margin: 20px;
  }
  #page-assets-list, #syntax-help {
    width: 290px;
    padding: 20px;
    float: left;
    margin: 10px;
    background-color: #eeeeee;
  }
  .clear {
    clear: both;
  }
  table {
    margin: 0 0 1em;
    border: 1px solid #cccccc;
    border-collapse: collapse;
    caption {
      white-space: nowrap;
      caption-side: top;
      padding: 0.2em 0.4em;
      font-weight: bold;
    }
    tbody {
      tr:nth-child(even) {background: #FFF}
      tr:nth-child(odd) {background: #f4f5f5}
    }
    th, td {
      border: 1px solid #cccccc;
      padding: 0.2em 0.4em;
      vertical-align: top;
    }
    th {
      background: #cccccc;
      color: #000000;
      text-align: left;
      font-weight: normal;
      font-variant: small-caps;
      white-space: nowrap;
    }
    tr.old td {
      opacity: 0.5;
      border-color: #e6e6e6;
    }
    td.actions {
      ul {
        padding: 0;
        margin: 0;
      }
      li {
        list-style: none;
        float: left;
        padding-right: 8px;
      }
    }
    &.statistics {
      td {
        text-align: right;
      }
      tr {
        &.nil {
          th, td {
            background-color: #ffbbbb;
            color: #999999;
          }
        }
        &.total td {
          background-color: #bbbbff;
        }
      }
    }
  }

  form {
    &#loginform, &#new_admin_session {
      margin-left: 8px;
      padding: 0.9em;
      font-weight: normal;
      -moz-border-radius: 11px;
      -khtml-border-radius: 11px;
      -webkit-border-radius: 11px;
      border-radius: 5px;
      background: #fff;
      border: 1px solid #e5e5e5;
      -moz-box-shadow: #c8c8c8 0 4px 18px;
      -webkit-box-shadow: #c8c8c8 0 4px 18px;
      -khtml-box-shadow: #c8c8c8 0 4px 18px;
      box-shadow: #c8c8c8 0 4px 18px;
    }
  }
  #login-box {
    width: 36em;
    margin: 7em auto 0;
    form {
      .submit input {
        padding: 3px 10px;
        font-size: 12px;
        border: 1px solid #222;
        -moz-border-radius: 15px;
        -khtml-border-radius: 15px;
        -webkit-border-radius: 15px;
        border-radius: 15px;
        cursor: pointer;
        margin-top: -3px;
      }
      p {
        margin-bottom: 0;
      }
    }
  }
  label {
    color: #777;
    font-size: 13px;
    display: block;
  }
  form {
    .forgetmenot label {
      font-size: 11px;
      line-height: 19px;
    }
    .submit {
      float: right;
    }
    p {
      margin-bottom: 24px;
    }
  }
  #loginform {
    .submit {
      float: none;
      text-align: right;
    }
    #adminsite_admin_user_email, #adminsite_admin_user_password {
      -moz-background-clip: border;
      -moz-background-inline-policy: continuous;
      -moz-background-origin: padding;
      background: #FBFBFB none repeat scroll 0 0;
      border: 1px solid #E5E5E5;
      font-size: 24px;
      margin-bottom: 16px;
      margin-right: 6px;
      margin-top: 2px;
      padding: 3px;
      width: 97%;

    }
  }

  form.formtastic {
    & > div {
      width: 800px;
      float: left;
      background-color: #eee;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }
    fieldset > ol {
      width: 800px;
      float: left;
    }
  }

  .select_row {
    width: 12px;
    height: 12px;
    background-color: #cccccc;
  }

  table tbody tr.selected {
    &:nth-child(odd) {
      background-color: #D1DCE4
    }
    .select_row {
      background-color: rgba(117, 117, 214, 0.91);
    }
    background-color: #d9e4ec;
  }

}
